﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed

#pragma once
#include "DbDataSchema.h"
#include "GcmpModelInterface.h"

namespace gcmp
{
    /// \brief 协同数据影响范围
    SERIALIZABLE_ENUM_CLASS(CollaborationScope)
    {
        Unknown = -1,            ///< 未知类型
        Dataset = 0,             ///< 工作单元
        Specialty = 1,           ///< 专业
        Project = 2              ///< 项目
    };

    /// \brief 协同上下文
    struct GCMP_MODEL_INTERFACE_EXPORT CollaborationContext
    {
        std::wstring ProjectId;     /// < 项目Id
        CollaborationScope Scope;   /// < 影响范围
        std::wstring Specialty;     /// < 专业。在Scope为专业级时有效
    };
}
